package kr.hkit.team.score.erp;

import java.sql.Connection;

import kr.hkit.myframework.db.ConnectionFactory;
import kr.hkit.myframework.db.DBProperties;

public class TestMain {
	public static void main(String[] args) {
		
		String filePath = "dbcon.xml";
		String driver = "com.mysql.jdbc.Driver"; //mysql.lib에 driver클래스 쓰겠다
		String url = "jdbc:mysql://localhost:3306/score"; //이건 약속임
		String user = "root";
		String password = "1111";
		DBProperties.savePropertis(filePath, driver, url,user,password);
		DBProperties.prnProperties(DBProperties.loadPropertis(filePath)); //출력테스트용
		
		
		Connection con = ConnectionFactory.getConnection(); //DB연결
		
	}
}
